<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<script>
function checkFirefoxOrIE(){
	userAgent=window.navigator.userAgent.toLowerCase();
    var name=navigator.appName;
    if(name=="Microsoft Internet Explorer")
	{
		document.write("你用的是IE浏览器！");
		}
}
window.onload = function (){
	userAgent=window.navigator.userAgent.toLowerCase();
    var name=navigator.appName;
    if(name=="Microsoft Internet Explorer")
	{
		var height = 700;
		var width = 1024;
		
		var win_width = window.screen.width;
		var win_height = window.screen.height;
		var top = (win_height - height)/2;
		var left = (win_width - width)/2;
		window.opener=null;
		window.open('','_self');
		window.close();
		var url = 'pages/login.htm';
		var name = 'login';
		var config = 'height='+height+',width='+width+',top='+top+',left='+left+',toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no';
		
		window.open(url,name,config);
	} else {
		alert("请使用IE浏览器");
		window.opener=null;
		window.open('','_self');
		window.close();
	}
}
</script>
<body>
</body>
</html>
